package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderCoupon;
import com.nbsaas.boot.order.api.domain.simple.OrderCouponSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单优惠券-列表对象转换器
*/

public class OrderCouponSimpleConvert implements Converter<OrderCouponSimple, OrderCoupon> {




@Override
public OrderCouponSimple convert(OrderCoupon source) {
    OrderCouponSimple result = new OrderCouponSimple();

                result.setMinAmount(source.getMinAmount());
                result.setCouponName(source.getCouponName());
                result.setOrderNo(source.getOrderNo());
                result.setOrderId(source.getOrderId());
                result.setDiscountAmount(source.getDiscountAmount());
                result.setCouponId(source.getCouponId());
                result.setAddDate(source.getAddDate());
                result.setUseStatus(source.getUseStatus());
                result.setCouponAmount(source.getCouponAmount());
                result.setCouponType(source.getCouponType());
                result.setId(source.getId());
                result.setCouponCode(source.getCouponCode());
                result.setLastDate(source.getLastDate());


    return result;
}

}